﻿using Microsoft.EntityFrameworkCore;

namespace MyToDo.Content
{
    public class MyToContext:DbContext
    {
        /// <summary>
        /// 这里的base是调用基类中的方法
        /// </summary>
        /// <param name="options"></param>
        public MyToContext(DbContextOptions<MyToContext> options) : base(options)
        {
        }
        public DbSet<ToDo> ToDo { get; set; }
        public DbSet<User> User { get; set; }
        public DbSet<Memo> Memo { get; set; }
    }
}
